package user;

import Book.BookList;
import Operation.IOPeration;

public abstract class User {  //多态
    protected String name;//被protected修饰的成员对于本包和其子类可见
    protected IOPeration [] ioPerations;//没有初始化,在继承类里面初始化

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    public void doOperation(int choice,BookList bookList) {
        this.ioPerations[choice].work(bookList);//引用了对象
    }
}
